"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Md5Helper = void 0;
const Logger_1 = require("./Logger");
const DateUtil_1 = require("./DateUtil");
const md5 = require('./md5');
// const md5 = require('md5');
class Md5Helper {
    static getMd5Default(str) {
        let md5Key = md5(str);
        Logger_1.Logger.log("getMd5Default=====", md5Key);
        return md5Key;
    }
    static getMd5Str(str) {
        let md5Key = md5(str + this.Private_Key);
        return md5Key;
    }
    static createToken(userName) {
        Logger_1.Logger.log("createToken==11", md5);
        let token = this.getMd5Str(userName + DateUtil_1.default.now());
        Logger_1.Logger.log("createToken==", token);
        return token;
    }
}
exports.Md5Helper = Md5Helper;
Md5Helper.Private_Key = "jhao";
